﻿namespace io.gitee.springsongs
{
    internal class Program
    {
        static void Main(String[] args)
        {
            var person = new
            {
                Id = 0,
                Name = "springsongs1",
                Age = 30
            };
            var student = new
            {
                Id = 1,
                Name = "springsongs1",
                Age = 31
            };
            person = student; //如果两个匿名类都有相同的属性，那么相两个类的类型就相同
            Console.WriteLine(person.Age);
        }
    }
}